package net.zjitc.mapper;

import net.zjitc.pojo.Board;
import net.zjitc.pojo.Movie;
import net.zjitc.vo.MovieVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author admin
 * @Date 2019/5/28 10:22
 */
@Repository
public interface MovieMapper {
    List<Movie> findAll();

    List<Movie> findByDis_id(Integer dis_id);

    List<Movie> findByType_id(Integer type_id);


    List<Movie> findByhot();

    List<Movie> findBydate();

    List<Movie> findByold();

    int deleteMovie(Integer id);

    List<Movie> search(MovieVo vo);

    int add(Movie movie);

    List<Movie> index_hot();

    List<Movie> index_date();

    List<Movie> index_old();

    Movie findById(int movie_id);


    int update(Movie movie);
}
